<?php $article_settings = Configure::read('Article'); ?>
<div class="articles articles-index">
	<h1><?php echo $article_settings['header']; ?></h1>
	
	<div class="article-list">
		<?php
		$i = 0;
		foreach ($articles as $article):
			$class = "listview";
			if ($i++ % 2 == 0) $class = 'listview altrow';
		?>
		<?php echo $this->element('../articles/listview', array("article" => $article, "class" => $class)); ?>
		<?php endforeach;?>
	</div>
	<div class="secondary">
		<div id="about-widget" class="widget">
			<h3 class="title"><?php echo $article_settings['header_2']; ?></h3>
			<div class="widget-content">
			<p><?php echo $article_settings['intro'] ?></p>
			</div>
		</div><!-- End about-widget -->

		<?php echo $this->element('../articles/elements/latest_widget', array("cache" => true)); ?>
		<?php echo $this->element('../articles/elements/popular_widget', array("cache" => true)); ?>
	</div>
	<?php echo $this->element('paging') ?>
</div>